	sizeChange();
	function sizeChange(){
		$(".home_slide").css("width",$(window).width())
		$(".home_slide ul").css("width",$(window).width()*3)
		$(".home_slide img").css("width",$(window).width())
	}
	$(window).resize(function(){
		sizeChange();
	})
	$(".info_text").html($(".home_slide span:eq(0)").html());
	$(".info_page a").removeClass("hover");
	$(".info_page a:eq(0)").addClass("hover");
	var slider = new Swipe(
		document.getElementById('home_slide'), 
		{
			startSlide: 2,
			speed: 500,
			auto: 4000,
			startSlide:0,
			continuous: false,
			callback: function(index, elem) {
				$(".info_text").html($(".home_slide span:eq("+index+")").html());
				$(".info_page a").removeClass("hover");
				$(".info_page a:eq("+ index +")").addClass("hover");
    		}
		}
	)
	//ad
	if($(".waphome_topadv01 img").length != 0){
		$(".waphome_topadv01 img").attr({width:"100%",height:""})
		if(getCookie("src") && getCookie("src") == $(".waphome_topadv01 img").attr("src") && getCookie("tap") && getCookie("tap") == "1"){ $(".waphome_topadv01").hide()}else{ $(".waphome_topadv01").show();}
		if($(".topadv01_close").length != 0) $(".topadv01_close").click(function(){addCookie("tap","1",0);$(".waphome_topadv01").hide();})
		addCookie("src",$(".waphome_topadv01 img").attr("src"),0);
	}
	function addCookie(objName,objValue,objHours){
		//添加cookie 
		var str = objName + "=" + escape(objValue); 
		if(objHours > 0){
			//为0时不设定过期时间，浏览器关闭时cookie自动消失 
			var date = new Date(); 
			var ms = objHours*3600*1000; 
			date.setTime(date.getTime() + ms); 
			str += "; expires=" + date.toGMTString(); 
		} 
		document.cookie = str;
	}
	
	function getCookie(objName){//获取指定名称的cookie的值 
		var arrStr = document.cookie.split(";"); 
		for(var i = 0;i < arrStr.length;i ++){ 
			var temp = arrStr[i].split("="); 
			if($.trim(temp[0]) == objName) return unescape(temp[1]); 
		} 
	}
	
	
	
	